package com.xls.aclservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xls.aclservice.entity.SysUser;
import com.xls.aclservice.vo.UserQuery;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xls
 * @since 2021-03-23
 */
public interface SysUserService extends IService<SysUser> {

    Page<SysUser> getUserPage(Integer page, Integer limit, UserQuery userQuery);

    void saveUser(SysUser sysUser);

    SysUser getUser(Long id);

    SysUser selectByUsername(String username);

    void updateStatus(SysUser sysUser);

    void removeUser(String id);

    SysUser updatePassword(String oldPassword, String newPassword);

    SysUser updateUserProfile(SysUser sysUser);

    String uploadAvatar(MultipartFile file, String id);
}
